/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.garagesale.user.web.form;

import com.garagesale.data.Item;
import com.garagesale.data.ItemCategory;
import java.util.List;
import javax.servlet.http.HttpServletRequest;

import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionMapping;

/**
 *
 * @author christophe
 */
public class ListItemsForm extends org.apache.struts.action.ActionForm
{


    private String categoryFilter;
    private String nameFilter;
    private String lowerPriceFilter;
    private String upperPriceFilter;
    private String descriptionFilter;

    
    private List<Item> items;

    private List<ItemCategory> categories;

    public List<ItemCategory> getCategories()
    {
        return categories;
    }

    public void setCategories(List<ItemCategory> categories)
    {
        this.categories = categories;
    }


    

    public List<Item> getItems()
    {
        return items;
    }

    public void setItems(List<Item> items)
    {
        this.items = items;
    }

    

    public String getCategoryFilter()
    {
        return categoryFilter;
    }

    public String getDescriptionFilter()
    {
        return descriptionFilter;
    }

    public String getLowerPriceFilter()
    {
        return lowerPriceFilter;
    }

    public String getNameFilter()
    {
        return nameFilter;
    }

    public String getUpperPriceFilter()
    {
        return upperPriceFilter;
    }

    public void setCategoryFilter(String categoryFilter)
    {
        this.categoryFilter = categoryFilter;
    }

    public void setDescriptionFilter(String descriptionFilter)
    {
        this.descriptionFilter = descriptionFilter;
    }

    public void setLowerPriceFilter(String lowerPriceFilter)
    {
        this.lowerPriceFilter = lowerPriceFilter;
    }

    public void setNameFilter(String nameFilter)
    {
        this.nameFilter = nameFilter;
    }

    public void setUpperPriceFilter(String upperPriceFilter)
    {
        this.upperPriceFilter = upperPriceFilter;
    }

    

    /**
     *
     */
    public ListItemsForm()
    {
        super();
        // TODO Auto-generated constructor stub
    }

    /**
     * This is the action called from the Struts framework.
     * @param mapping The ActionMapping used to select this instance.
     * @param request The HTTP Request we are processing.
     * @return
     */
    public ActionErrors validate(ActionMapping mapping, HttpServletRequest request)
    {
        ActionErrors errors = new ActionErrors();

        return errors;
    }
}
